package com.doubi.model.sys;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 酒店
 *
 * @author MrDoubi
 * @since 2020-03-16
 */
@Data
@TableName("t_hotel")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class THotel extends Model<THotel> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.UUID)

    private String oid;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

    /**
     * 1热门 0不是
     */
    @TableField("is_hot")

    private Integer isHot;


    @TableField("name")

    private String name;

    @TableField("video_img")

    private String videoImg;


    /**
     * 主图
     */
    @TableField("master_img")

    private String masterImg;


    /**
     * 精度
     */
    @TableField("longitude")

    private String longitude;


    /**
     * 纬度
     */
    @TableField("latitude")

    private String latitude;


    /**
     * 地址
     */
    @TableField("address")

    private String address;


    /**
     * 标签
     */
    @TableField("lable")

    private String lable;


    /**
     * 价格
     */
    @TableField("price")

    private BigDecimal price;


    /**
     * 电话
     */
    @TableField("phone")

    private String phone;


    @TableField("create_time")

    private Date createTime;


    @TableField("update_time")

    private Date updateTime;


    @TableField("is_delete")
    @TableLogic

    private Integer isDelete;


    /**
     * 简介
     */
    @TableField("introduction")

    private String introduction;


    /**
     * 环境
     */
    @TableField("environmental_science")

    private String environmentalScience;


    @TableField("video_url")
    private String videoUrl;
    @TableField("video_length")
    private String videoLength;



    /**
     * 价格区间
     */
    @TableField("price_range")
    private String priceRange;

    /**
     * 图片对象们
     */
    @TableField("img_urls")
    private String imgUrls;

    /**
     * 好评
     */
    @TableField("praise")
    private Double praise;


    /**
     * 定金
     */
    @TableField("earnest_money")
    private BigDecimal earnestMoney;

    /**
     * 关联用户
     */
    @TableField("user_oid")
    private String userOid;


}